package cn.humaohua.study.yanmo_design_pattern.ch13.v3;

public class DuckCommand implements Command {
    private CookApi cook;

    public void setCook(CookApi cook) {
        this.cook = cook;
    }

    @Override
    public void execute() {
        this.cook.cook("duck");
    }

}
